<?php
declare (strict_types = 1);

namespace app\listener\backend;

use app\service\logic\common\order\OrderConsultRefundLogService;
use Exception;
use think\facade\Log;

class OrderConsultRefundLogListener
{
    /**
     * @param $argc
     * @return mixed
     */
    public function handle($argc)
    {
        try {
            return invoke(OrderConsultRefundLogService::class)->saveAll($argc);
        } catch (Exception $e) {
            Log::debug('OrderConsultRefundLogListenerException: message=' . $e->getMessage() . ', argc=' . var_export($argc, true));
            return true;
        }
    }
}
